<?php
class Post extends MModel {
    static $table_name = 'ml_microblog_posts';
    static $belongs_to = array(
         array('ml_microblog_profiles', 'class_name'=>'Profile'),
    );
    static $has_many = array(
        array('ml_microblog_posts_tags', 'class_name'=>'PostTag'),
        array('ml_microblog_tags', 'through'=>'ml_microblog_posts_tags', 'source' => 'Tag')
    );
    static $alias_attribute = array(
        'profile' => 'ml_microblog_profiles',
        'tags'=>'ml_microblog_tags',
    );
}
?>
